package cn.com.service.impl;


import cn.com.mapper.BillMapper;
import cn.com.pojo.Bill;
import cn.com.service.BillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service
@Transactional
public class BillServiceImpl implements BillService {
@Autowired
    BillMapper mapper;

    @Override
    public void addBill(Bill bill) {
        mapper.addBill(bill);
    }

    @Override
    public void delBill(int id) {
        mapper.delBill(id);
    }

    @Override
    public List<Bill> findBill(String shopUserName, String userName, int status) {
        return mapper.findBill(shopUserName,userName,status);
    }

    @Override
    public void update(String shopUserName,String userName) {
        mapper.update(shopUserName,userName);
    }

    @Override
    public List<Bill> searchBill(Bill bill) {
        return mapper.searchBill(bill);
    }
}

